<template>
  <div>
    <nav>
      <router-link to="/">Home</router-link> |      
      <router-link to="/orderList">订单扫码</router-link> |
      <button @click="logout">Logout</button>
    </nav>    
  </div>
</template>

<script>

export default {
  name: "HomeView",
  components: {
  },
  methods: {
    logout() {
      //登录注销
      // 清除状态保持
      window.localStorage.clear();
      // 状态保持清除后刷新页面
      window.location.reload();
    },
  },
};
</script>
